import request from '@/utils/request';
//查询
export function tpList(data) {
  return request({
    url: '/stu/side/atlas/list',
    method: 'get',
    params: data,
  });
}

//查询图谱详情
export function tpxqList(data) {
  return request({
    url: '/medicine/atlas/img/list',
    method: 'get',
    params: data,
  });
}

// 获取点位知识点
export function bsList(data) {
  return request({
    url: '/stu/side/point/details',
    method: 'get',
    params: data,
  });
}
// 获取人体部位
export function rtbwlist(data) {
  return request({
    url: '/stu/side/body/parts',
    method: 'get',
    params: data,
  });
}

//查询
export function personList(data) {
  return request({
    url: '/body/part/list',
    method: 'get',
    params: data,
  });
}
//查询解刨结构
export function jpList(data) {
  return request({
    url: '/anatomic/structure/list',
    method: 'get',
    params: data,
  });
}

// 添加图像点位 /mark/points/add
export function addPoint(data) {
  return request({
    url: '/mark/points/add',
    method: 'POST',
    data,
  });
}

//查询标记点
export function getPoint(data) {
  return request({
    url: '/mark/points/all/points',
    method: 'get',
    params: data,
  });
}
export function getPointnew(data) {
	return request({
		url: '/mark/points/all/points/new',
		method: 'get',
		params: data
	})
}
//删除标记点
export function delPoint(data) {
  return request({
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 你可以根据实际需要设置其他请求头
    },
    url: '/mark/points/delete',
    method: 'DELETE',
    // data,
    params: data,
  });
}

// 解刨结构列表
export function getStructurelist(data) {
  return request({
    url: '/anatomic/structure/list',
    method: 'get',
    params: data,
  });
}
// 添加解刨结构
export function addStructure(data) {
  return request({
    url: '/anatomic/structure/add',
    method: 'POST',
    data,
  });
}
// 修改解刨结构
export function updaStructure(data) {
  return request({
    url: '/anatomic/structure/update',
    method: 'POST',
    data,
  });
}
// 删除解刨结构
export function DelStructure(data) {
  return request({
    url: '/anatomic/structure/delete',
    method: 'DELETE',
    params: data,
  });
}
// 添加图谱
export function addatlas(data) {
  return request({
    url: '/medicine/atlas/add',
    method: 'POST',
    data,
  });
}
// 上传封面
export function addimg(data) {
  return request({
    url: '/medicine/atlas/upload',
    method: 'POST',
    data,
  });
}

// 字典

export function select(data) {
  return request({
    url: '/admin/dict/select',
    method: 'GET',
    params: data,
  });
}

// 修改图谱
export function upatlas(data) {
  return request({
    url: '/medicine/atlas/update',
    method: 'POST',
    data,
  });
}

// 上传图像
export function upload(data) {
  return request({
    headers: {
      'Content-Type': 'multipart/form-data', // 你可以根据实际需要设置其他请求头
    },
    url: '/medicine/atlas/img/upload',
    method: 'POST',
    data,
  });
}
// 上传图像
export function addupload(data) {
  return request({
    url: '/medicine/atlas/img/add',
    method: 'POST',
    data,
  });
}

// 编辑知识点 /mark/points/update
export function pointContent(data) {
  return request({
    // url: '/mark/points/update',
    url:'/mark/points/details/update',
    method: 'POST',
    data,
  });
}
// 获取知识点详情
export function getContent(data) {
  return request({
    url: '/stu/side/point/details',
    method: 'GET',
    params: data,
  });
}
// 获取知识点id 


export function getContentid(data) {
  return request({
    url: '/mark/points/details/getByName',
    method: 'GET',
    params: data,
  });
}
// 系统结构树

export function getTree(data) {
  return request({
    url: '/anatomic/structure/tree',
    method: 'GET',
    params: data,
  });
}
// 删除图谱

export function delTp(data) {
  return request({
    url: '/medicine/atlas/delete',
    method: 'DELETE',
    params: data,
  });
}

// 禁用图谱



export function upDatestatus(data) {
  return request({
    url: '/medicine/atlas/update/status',
    method: 'get',
    params: data,
  });
}



// 更新拖拽标记点



export function pointsUpdate(data) {
  return request({
    url: '/mark/points/update/move',
    method: 'POST',
   data,
  });
}
